package pers.course.week7;

import java.util.Scanner;

class Customer1 {
    String[] names;
    public Customer1() {
        names = new String[2];
    }
    public void Customer(String f, String l) {
        this.names[0] = f;
        this.names[1] = l;
    }
    public String getF() {
        return this.names[0];
    }
    public String getL() {
        return this.names[1];
    }
}
class Bank1 {
    Customer1[] customers;
    int numberOfCustomers = 0;
    public Bank1() {
        customers = new Customer1[100];
        for (int i = 0; i < customers.length; i++) {
            customers[i] = new Customer1();
        }
    }
    public void addCustomer(String f, String l) {
        this.customers[this.numberOfCustomers].Customer(f, l);
        this.numberOfCustomers++;
    }
    public int getNumOfCustomers() {
        return this.numberOfCustomers;
    }
    public Customer1 getCustomer(int index) {
        return this.customers[index];
    }
}
public class UseArrays {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        Bank1 bank = new Bank1();
        for (int i = 0; i < num; i++) {
            bank.addCustomer(in.next(), in.next());
        }
        print(bank);
    }
    public static void print(Bank1 bank) {
        for (int i = 0; i < bank.getNumOfCustomers(); i++) {
            System.out.print("Customer [" + (i + 1) + "] is " + bank.getCustomer(i).getL() + ", " + bank.getCustomer(i).getF());
            System.out.println();
        }
    }
}
